<nav class="navbar navbar-inverse navbar-fixed-top">
    <div class="container-fluid">
      <div class="navbar-header">
        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
          <span class="sr-only">Toggle navigation</span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
        </button>
        <a class="navbar-brand" href="#">Project name</a>
      </div>
      <div id="navbar" class="navbar-collapse collapse">
        <ul class="nav navbar-nav navbar-right">
          <li><a href="/index2/">首页</a></li>
          <li><a href="/um/">用户管理</a></li>
          <li><a href="/hy/">历史记录</a></li>
          <li><a href="//">退出登录</a></li>
          <ul class="nav navbar-nav navbar-right">
            <li class="dropdown">
                <!--{info.name}这个不是固定的看登录界面传入session的变量是什么-->
                <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><span class="glyphicon glyphicon-user"></span>&nbsp;&nbsp;欢迎 {{ request.session.info.name }}<span class="caret"></span></a>
                <ul class="dropdown-menu">
                    <li><a style="color: black" href="/geren/">个人资料</a></li>
                    <li><a style="color: black" href="#">我的信息</a></li>
                    <li><a  style="color: black" href="/login/">切换账号</a></li>
                    <li role="separator" class="divider"></li>
                    <li><a style="color: black"  href="/userdel/">注销账号</a></li>
                </ul>
            </li>
        </ul>
        </ul>
      </div>
    </div>
  </nav>